package day04;

import java.util.Scanner;

public class PickPrize {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = (int) (Math.random()*1000+1);
        int pick ;
        do {
            System.out.println("猜猜看");
            pick= sc.nextInt();
            if (pick>num){
                System.out.println("大了");
            }
            else if (pick<num){
                System.out.println("小了");
            }
            else {
                System.out.println("对了");
            }

        }while (pick!=num);


    }
}
